package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.solr.client.solrj.beans.Field;

/**
 * 类管理对象 sys_classes
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
public class SysClasses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    //用于根据id进行in查询
    @TableField(exist = false)
    private String idIn;

    /** 类英文名称 */
    @Excel(name = "类英文名称")
    private String nameEn;

    /** 类中文名称 */
    @Excel(name = "类中文名称")
    private String nameZh;

    /** 描述 */
    private String description;

    /** 父类 */
    private Long classesId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 是否在加工平台展示 */
    @Excel(name = "是否在加工平台展示")
    private String display;

    /** 是否普通检索知识库（0-否1-是） */
    @Excel(name = "是否普通检索知识库", readConverterExp = "0=-否1-是")
    private String generalSearch;

    /** 是否高级检索知识库（0-否1-是） */
    @Excel(name = "是否高级检索知识库", readConverterExp = "0=-否1-是")
    private String advancedSearch;

    /** 是否首页快捷入口（0-否1-是） */
    @Excel(name = "是否首页快捷入口", readConverterExp = "0=-否1-是")
    private String indexEntrance;

    /** 是否首页导航入口（0-否1-是） */
    @Excel(name = "是否首页导航入口", readConverterExp = "0=-否1-是")
    private String indexNavigation;

    /** 详情地址 */
    private String detailUrl;

    /** 所属资源库 */
    @Excel(name = "所属资源库")
    private String db;

    @Excel(name = "资源数")
    private Long resourceCount;

    /** 所属资源库中文名 */
    @TableField(exist = false)
    private String dbZh;

    public String getIdIn() {
        return idIn;
    }

    public void setIdIn(String idIn) {
        this.idIn = idIn;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameEn(String nameEn) 
    {
        this.nameEn = nameEn;
    }

    public String getNameEn() 
    {
        return nameEn;
    }
    public void setNameZh(String nameZh) 
    {
        this.nameZh = nameZh;
    }

    public String getNameZh() 
    {
        return nameZh;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setClassesId(Long classesId) 
    {
        this.classesId = classesId;
    }

    public Long getClassesId() 
    {
        return classesId;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setDisplay(String display)
    {
        this.display = display;
    }

    public String getDisplay()
    {
        return display;
    }
    public void setGeneralSearch(String generalSearch) 
    {
        this.generalSearch = generalSearch;
    }

    public String getGeneralSearch() 
    {
        return generalSearch;
    }
    public void setAdvancedSearch(String advancedSearch) 
    {
        this.advancedSearch = advancedSearch;
    }

    public String getAdvancedSearch() 
    {
        return advancedSearch;
    }
    public void setIndexEntrance(String indexEntrance) 
    {
        this.indexEntrance = indexEntrance;
    }

    public String getIndexEntrance() 
    {
        return indexEntrance;
    }
    public void setIndexNavigation(String indexNavigation) 
    {
        this.indexNavigation = indexNavigation;
    }

    public String getIndexNavigation() 
    {
        return indexNavigation;
    }
    public void setDetailUrl(String detailUrl) 
    {
        this.detailUrl = detailUrl;
    }

    public String getDetailUrl() 
    {
        return detailUrl;
    }
    public void setDb(String db) 
    {
        this.db = db;
    }

    public String getDb() 
    {
        return db;
    }

    public String getDbZh() {
        return dbZh;
    }

    public void setDbZh(String dbZh) {
        this.dbZh = dbZh;
    }

    public Long getResourceCount() {
        return resourceCount;
    }

    public void setResourceCount(Long resourceCount) {
        this.resourceCount = resourceCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameEn", getNameEn())
            .append("nameZh", getNameZh())
            .append("description", getDescription())
            .append("classesId", getClassesId())
            .append("sort", getSort())
            .append("display", getDisplay())
            .append("generalSearch", getGeneralSearch())
            .append("advancedSearch", getAdvancedSearch())
            .append("indexEntrance", getIndexEntrance())
            .append("indexNavigation", getIndexNavigation())
            .append("detailUrl", getDetailUrl())
            .append("db", getDb())
            .append("dbZh", getDbZh())
            .append("resourceCount", getResourceCount())
            .toString();
    }
}
